<?php

require_once('WxPayDataBase.class.php');
class WxMoneyConfig extends WxPayDataBase{
	public function setNonceStr($value){
		$this->values['nonce_str'] = $value;
	}

	public function setSign(){
        
		$sign = $this->MakeSign();
		$this->values['sign'] = $sign;
		return $sign;
	}
  
  /**
   * 生成mch_billno 
   */
	// public function setMchBillno(){
	// 	//生成10位随机数测试时一般不会重复
	// 	$rand_num = rand(0,99999999);
 //        $bill_no = sprintf('%010d', $rand_num);

	// 	$this->values['mch_billno'] = WxPayConfig::MCHID.date("Ymd").$bill_no;
	// }
	public function setMchBillno($value){
		$this->values['mch_billno'] = $value;
	}

	public function setMchId($value){
		$this->values['mch_id'] = $value;
	}

	public function setSubMchId($value){
		$this->values['sub_mch_id'] = $value;
	}

	public function setWxAppId($value){
		$this->values['wxappid'] = $value;
	}

	public function setNickName($value){
		$this->values['nick_name'] = $value;
	}

	public function setSendName($value){
		$this->values['send_name'] = $value;
	}

	public function setReOpenId($value){
		$this->values['re_openid'] = $value;
	}

	public function setTotalAmount($value){
		$this->values['total_amount'] = $value;
	}

	public function setMinValue($value){
		$this->values['min_value'] = $value;
	}

	public function setMaxValue($value){
		$this->values['max_value'] = $value;
	}

	public function setTotalNum($value){
		$this->values['total_num'] = $value;
	}

	public function setWishing($value){
		$this->values['wishing'] = $value;
	}

	public function setClientIp($value){
		$this->values['client_ip'] = $value;

	}

	public function setActName($value){
		$this->values['act_name'] = $value;
	}

	public function setRemark($value){
		$this->values['remark'] = $value;
	}

	public function setLogoImageUrl($value){
		$this->values['logo_imgurl'] = $value;
	}

	public function setShareContent($value){
		$this->values['share_content'] = $value;
	}

	public function setShareUrl($value){
		$this->values['share_url'] = $value;
	}

	public function setShareImageUrl($value){
		$this->values['share_imgurl'] = $value;
	}
}